    alert("calling4");

    chrome.tabs.getSelected(null, function (mytab) {
        if (mytab.title.indexOf("Hotmail") != -1) {
            //alert("inside hotmail");
            
            //chrome.tabs.executeScript(mytab.id,{code: "var obj = document.getElementById('ManagedContentWrapper'); obj.style.top='2.677376171352075em';if (obj.style.width)<>'') document.getElementById('ManagedContentWrapper').style.width=(document.getElementById('ManagedContentWrapper').offsetWidth+155).toString()+'px'";" },null);
            //chrome.tabs.executeScript(null, { code: "alert(document.body.innerHTML)" }, null);
            chrome.tabs.executeScript(null, { code: "alert(document.getElementById('ManagedContentWrapper'))" }, null);
            chrome.tabs.executeScript(null, { code: "var obj = document.getElementById('ManagedContentWrapper'); obj.style.top='2.677376171352075em'; if (obj.style.width=='') obj.style.width = (obj.offsetWidth+160).toString()+'px'" }, null);
            alert("hotmail done");
        } else if (mytab.title.indexOf("Yahoo! Mail") != -1) {
            alert("inside yahoo");
            var myCode = " if (document.getElementById('theAd')) document.getElementById('theAd').style.display = 'none'; ";
            myCode += " var obj = document.getElementById('msg-list');  "
            myCode += " var obj2 = document.getElementById('msg-preview');  "
            myCode += " var obj3 = document.getElementById('rail-resize-hori');  "
            //myCode += " alert(obj.style.width); alert(obj.offsetWidth); "
            myCode += " if (obj.style.width=='auto') obj.style.width = (obj.offsetWidth+160).toString()+'px'; "
            myCode += " if (obj2.style.width=='') obj2.style.width = (obj2.offsetWidth+160).toString()+'px'; "
            myCode += " if (obj3.style.width=='') obj3.style.width = (obj3.offsetWidth+160).toString()+'px'; "
            chrome.tabs.executeScript(mytab.id, { code: myCode }, null);
        } else {
            alert("inside else");
            alert(mytab.title);
        }
        //chrome.tabs.executeScript(mytab.id,{code:"alert(document.getElementById('ManagedContentWrapper').offsetWidth)" },null);
        //chrome.tabs.executeScript(mytab.id,{code:"alert(document.getElementById('ManagedContentWrapper').style.width=='')" },null);
        //chrome.tabs.executeScript(mytab.id,{code:"document.getElementById('ManagedContentWrapper').style.width=(document.getElementById('ManagedContentWrapper').offsetWidth+155).toString()+'px'" },null);
    }
			);		



function doIt() 
{
    alert("inside di it");
    alert(chrome.tabs);

    //			chrome.tabs.getSelected(null,function(mytab) {
    //					alert(mytab.title);
    //					var myjs = chrome.tabs.InjectDetails;
    //					if (mytab.title.indexOf("Hotmail")!=-1){
    //					//chrome.tabs.executeScript(mytab.id,{code: "var obj = document.getElementById('ManagedContentWrapper'); obj.style.top='2.677376171352075em';if (obj.style.width)<>'') document.getElementById('ManagedContentWrapper').style.width=(document.getElementById('ManagedContentWrapper').offsetWidth+155).toString()+'px'";" },null);
    //						//chrome.tabs.executeScript(mytab.id,{code:"alert(document.getElementById('ManagedContentWrapper').offsetWidth)" },null);
    //						chrome.tabs.executeScript(mytab.id,{code: "var obj = document.getElementById('ManagedContentWrapper'); obj.style.top='2.677376171352075em'; if (obj.style.width=='') obj.style.width = (obj.offsetWidth+160).toString()+'px'" },null);
    //					}else if (mytab.title.indexOf("Yahoo! Mail")!=-1){
    //						var myCode = " if (document.getElementById('theAd')) document.getElementById('theAd').style.display = 'none'; ";
    //						myCode += " var obj = document.getElementById('msg-list');  "
    //						myCode += " var obj2 = document.getElementById('msg-preview');  "
    //						myCode += " var obj3 = document.getElementById('rail-resize-hori');  "
    //						//myCode += " alert(obj.style.width); alert(obj.offsetWidth); "
    //						myCode += " if (obj.style.width=='auto') obj.style.width = (obj.offsetWidth+160).toString()+'px'; "
    //						myCode += " if (obj2.style.width=='') obj2.style.width = (obj2.offsetWidth+160).toString()+'px'; "
    //						myCode += " if (obj3.style.width=='') obj3.style.width = (obj3.offsetWidth+160).toString()+'px'; "
    //						chrome.tabs.executeScript(mytab.id,{code: myCode },null);
    //					}else{
    //						alert(mytab.title);
    //					}
    //					//chrome.tabs.executeScript(mytab.id,{code:"alert(document.getElementById('ManagedContentWrapper').offsetWidth)" },null);
    //					//chrome.tabs.executeScript(mytab.id,{code:"alert(document.getElementById('ManagedContentWrapper').style.width=='')" },null);
    //					//chrome.tabs.executeScript(mytab.id,{code:"document.getElementById('ManagedContentWrapper').style.width=(document.getElementById('ManagedContentWrapper').offsetWidth+155).toString()+'px'" },null);
    //				}
    //			);		

}